## Viseme plugin for lam4htk
## Converts mlf files to viseme files
#
# Todo:
#
# Remember:
# - All Mapping files are to sapi

#Creates a frame file
align1.vis.frm : align1.vis
	$(MESSAGE)
	$(vdir)/vis2frm.pl $(framelength) <$^ >$@
.visfrmall1 : .visall1
	$(MESSAGE)
	$(vdir)/frmall vis1 frm1 $(TRAINCODE) $(framelength) $(vdir) && touch $@
align3.vis.frm : align3.vis
	$(MESSAGE)
	$(vdir)/vis2frm.pl $(framelength) <$^ >$@
.visfrmall3 : .visall3
	$(MESSAGE)
	$(vdir)/frmall vis3 frm3 $(TRAINCODE) $(framelength) $(vdir) && touch $@

#Creates a viseme file
align1.vis : align1.mlf
	$(MESSAGE)
	$(vdir)/mlf2vis.pl $(vdir)/ph2vis.$(vis_type).map <$^ >$@
.visall1 : .laball1
	$(MESSAGE)
	$(vdir)/visall lab1 vis1 $(TRAINCODE) $(vdir)/ph2vis.$(vis_type).map $(vdir) && touch $@
align3.vis : align3.mlf #not tested yet
	$(MESSAGE)
	$(vdir)/mlf2vis.pl $(vdir)/ph2vis.$(vis_type).map <$^ >$@
.visall3 : .laball3
	$(MESSAGE)
	$(vdir)/visall lab3 vis3 $(TRAINCODE) $(vdir)/ph2vis.$(vis_type).map $(vdir) && touch $@


